/**
 * @filename:StkOtherInService Feb 5, 2025
 * @project Wonder Vue Admin Api  1.1.0
 * Copyright(c) 2022 Wonder Co. Ltd. 
 * All right reserved. 
 */
package com.wonder.app.service;
import com.wonder.app.domain.OtherInspectDetail;
import com.wonder.app.domain.Otherinspect;
import com.wonder.app.domain.StkOtherIn;
import com.wonder.app.request.StkOtherInRequest;
import com.wonder.common.common.AjaxResult;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;
/**   
 * @Description:TODO(其他入库单服务层)
 * @version: 1.1.0
 * @author: Wonder
 * 
 */
public interface StkOtherInService extends IService<StkOtherIn> {

    
    /**
     * 验证其他入库单信息
     * 
     * @param stkOtherIn
     * @param type
     * @return 结果
     */
    public String validate(StkOtherIn stkOtherIn,String type);   
   
	
	 /**
	 * Description:其他入库单分页返回
	 * @param request//检索条件
	 * @param page//分页参数
	 * @return IPage<StkOtherIn>   //分页记录
	 */
    public IPage<StkOtherIn> selectList(StkOtherInRequest request, Page<StkOtherIn> page);
	/**
	 * 详情Stkotherout
	 * @param map
	 * @return
	 */
	Map<String, Object> getStkOtherInDetail(Map<String, Object> map) throws Exception;

	/**
	 * 其他入库单列表手机端
	 * @param map
	 * @return
	 */
	Map<String, Object> getOtherInList(Map<String, Object> map);

	/**
	 * 审核其他入库单
	 * @param user_id
	 * @param userName
	 * @param map
	 * @return
	 * @throws Exception
	 */
	boolean auditOtherIn(Long user_id, String userName, Map<String, Object> map) throws Exception;

	/**
	 * 其他入库单详情(手机端)
	 * @param map
	 * @return
	 * @throws Exception
	 */
    Map<String, Object> getOtherInDetail(Map<String, Object> map) throws Exception;

	/**
	 * 创建其他入库单
	 * @param inspect
	 * @param otherInList
	 * @param userName
	 * @return
	 */
    Boolean createOtherIn(Otherinspect inspect, List<OtherInspectDetail> otherInList, String userName);
}
